<?php
class m_order_faktur extends CI_Model {

    function __construct() {
        parent::__construct();
    }

	public function get($where = null, $limit = null, $offset = null)
    {
        if($where != null) $this->db->where($where);
        if($limit != null && $offset != null) $this->db->limit($limit, $offset);
        return $this->db->get("order_faktur");
    }
	
    function get_all($limit, $uri) {

        $result = $this->db->get('order_faktur', $limit, $uri);
        if ($result->num_rows() > 0) {
            return $result->result_array();
        } else {
            return array();
        }
    }

    function get_one($id) {
        $this->db->where('', $id);
        $this->db->delete('order_faktur');
    }

}
?>
